<template>
  <div class="main-title">
    <p class="line"></p>
    <p class="content">
      <span class="order">
        <i>{{ index }}</i>
      </span>
      <span class="text">{{ title }}</span>
    </p>
    <p class="line"></p>
  </div>
</template>
<script>
export default {
  name: 'StepTitle',
  props: {
    index: Number,
    title: String,
  },
};
</script>
<style>
.main-title {
  display: flex;
  justify-content: center;
}
.content {
  width: 150px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.content .order {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background: #4e8bfe;
  border-radius: 50%;
  color: #fff;
}
.content .order i {
  display: inline-block;
  margin-top: -8px;
  font-style: normal;
  vertical-align: middle;
}
.content .text {
  font-weight: 700;
  color: #333;
}
.line {
  flex: 1;
  border-top: 1px dashed #ebebeb;
  align-self: center;
}
</style>
